package class202205.demo05.demo05;

import java.util.Arrays;
import java.util.Scanner;

public class demo20220505 {
    public static void main(String[] args) {
        int[] arr ={12,44,63,87,95,66};
        Scanner scanner = new Scanner(System.in);
            for (int i = 0; i < arr.length; i++) {
                arr[i] = scanner.nextInt();
            }
            System.out.println(Arrays.toString(arr));
            int pek;
            int n = 5;
            for (int i = 0; i < arr.length / 2; i++) {
                pek = arr[n];
                arr[n] = arr[i];
                arr[i] = pek;
                n--;
            }
        System.out.println(Arrays.toString(arr));
    }
}
